using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MTRC.ODMS.Web.SOM.Popup
{
    /// <summary>
    /// Author:SQB
    /// </summary>
    public partial class PopupPossession : BasePage
    {
        #region Web

        override protected void OnInit(EventArgs e)
        {

            InitializeComponent();
            base.OnInit(e);
        }

        /// <summary>

        /// </summary>
        private void InitializeComponent()
        {
            this.ChangeLanguage += new MTRC.ODMS.Web.BasePage.ChangeLanguageEventHandler(this.SetLanguage_Click);
        }

        #endregion


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetLanguage();
                SetPageLoad();
            }
        }

        private void SetLanguage()
        {

            this.lblNotify.Text = this.GetLabel("SOM_TNNumber", true);
            this.lblTrade.Text = this.GetLabel("SOM_TransactionNumber",true);
            this.btnSearchDetails.Text =this.GetLabel("SOM_SearchProjectAreaDetails");
            this.lblLocation.Text = this.GetLabel("SOM_Location",true);
            this.lblJobRequire.Text = this.GetLabel("SOM_WorkRequirement",true);
            this.lblProtect.Text = this.GetLabel("SOM_Proection",true);
            this.lblCopySelete.Text = this.GetLabel("SOM_CopyOption");
            this.chkAllProtection.Text = this.GetLabel("SOM_AllProtectionDetails");
            this.chkOnlyProtection.Text = this.GetLabel("SOM_ProtectionOnly");
            this.lblClew.Text = this.GetLabel("SOM_Clew",true);
            this.lblPleaseCheck.Text = this.GetLabel("SOM_ClewContext");

            this.btnCancel.Text = this.GetLabel("COM_Cancel");
            this.btnCopy.Text = this.GetLabel("COM_Copy");
            
        }

        private void SetPageLoad()
        {
            this.btnCancel.Attributes.Add("onclick", "javascript:window.close();");
        }

        private void SetLanguage_Click(object sender, System.EventArgs e)
        {
            SetLanguage();
        }
    }
}
